import request from '@/utils/request'
export default {
    //物料添加到本地
    importPublicList(breedTypeListStr='fish', list = []) {
        return request.post("/v3/templateTenant/materialType/importPublicList", {
            farmingTypeNo: 'sc',
            list: list,
            breedType: breedTypeListStr||'fish',
            organizationNo: sessionStorage.organizationNo
        });
    },
    edit(data) {
        return request.post("/v3/templateTenant/materialType/edit", {
            ...data
        });
    },
    //本地物料
    queryPageByCondition(breedTypeListStr) {
        return request.post(`/v3/templateTenant/materialType/queryTreeByCondition`, {
            breedType: breedTypeListStr||'fish',
            organizationNo: sessionStorage.organizationNo,
            farmingTypeNo: 'sc'
        })
    },
    //删除物料
    delList(list) {
        return request.post("/v3/templateTenant/materialType/delListByNo", {
            list: list,
            organizationNo: sessionStorage.organizationNo
        });
    }
};
